//    Copyright (C) Kherty.  All rights reserved.

using System.Windows.Media;

namespace OpenLS.Spreadsheet.Formats.Biff
{
    internal class DefaultPalette
    {
        public static Color GetColorImpobsolete(int index)
        {
            return StandardPalette.GetColor(index);
/*
            switch (index)
            {
                case 0x00:
                    return Color.FromRgb(0x00, 0x00, 0x00);
                case 0x01:
                    return Color.FromRgb(0xFF, 0xFF, 0xFF); //= EGA White
                case 0x02:
                    return Color.FromRgb(0xFF, 0x00, 0x00); //= EGA Red
                case 0x03:
                    return Color.FromRgb(0x00, 0xFF, 0x00); //= EGA Green
                case 0x04:
                    return Color.FromRgb(0x00, 0x00, 0xFF); //= EGA Blue
                case 0x05:
                    return Color.FromRgb(0xFF, 0xFF, 0x00); //= EGA Yellow
                case 0x06:
                    return Color.FromRgb(0xFF, 0x00, 0xFF); //= EGA Magenta
                case 0x07:
                    return Color.FromRgb(0x00, 0xFF, 0xFF); //= EGA Cyan
                case 0x08:
                    return Color.FromRgb(0x00, 0x00, 0x00);
                case 0x14:
                    return Color.FromRgb(0x80, 0x00, 0x80);
                case 0x20:
                    return Color.FromRgb(0x00, 0x00, 0x80);
                case 0x2C:
                    return Color.FromRgb(0x99, 0xCC, 0xFF);
                case 0x38:
                    return Color.FromRgb(0x00, 0x33, 0x66);
                case 0x09:
                    return Color.FromRgb(0xFF, 0xFF, 0xFF);
                case 0x15:
                    return Color.FromRgb(0x00, 0x80, 0x80);
                case 0x21:
                    return Color.FromRgb(0xFF, 0x00, 0xFF);
                case 0x2D:
                    return Color.FromRgb(0xFF, 0x99, 0xCC);
                case 0x39:
                    return Color.FromRgb(0x33, 0x99, 0x66);
                case 0x0A:
                    return Color.FromRgb(0xFF, 0x00, 0x00);
                case 0x16:
                    return Color.FromRgb(0xC0, 0xC0, 0xC0);
                case 0x22:
                    return Color.FromRgb(0xFF, 0xFF, 0x00);
                case 0x2E:
                    return Color.FromRgb(0xCC, 0x99, 0xFF);
                case 0x3A:
                    return Color.FromRgb(0x00, 0x33, 0x00);
                case 0x0B:
                    return Color.FromRgb(0x00, 0xFF, 0x00);
                case 0x17:
                    return Color.FromRgb(0x80, 0x80, 0x80);
                case 0x23:
                    return Color.FromRgb(0x00, 0xFF, 0xFF);
                case 0x2F:
                    return Color.FromRgb(0xFF, 0xCC, 0x99);
                case 0x3B:
                    return Color.FromRgb(0x33, 0x33, 0x00);
                case 0x0C:
                    return Color.FromRgb(0x00, 0x00, 0xFF);
                case 0x18:
                    return Color.FromRgb(0x99, 0x99, 0xFF);
                case 0x24:
                    return Color.FromRgb(0x80, 0x00, 0x80);
                case 0x30:
                    return Color.FromRgb(0x33, 0x66, 0xFF);
                case 0x3C:
                    return Color.FromRgb(0x99, 0x33, 0x00);
                case 0x0D:
                    return Color.FromRgb(0xFF, 0xFF, 0x00);
                case 0x19:
                    return Color.FromRgb(0x99, 0x33, 0x66);
                case 0x25:
                    return Color.FromRgb(0x80, 0x00, 0x00);
                case 0x31:
                    return Color.FromRgb(0x33, 0xCC, 0xCC);
                case 0x3D:
                    return Color.FromRgb(0x99, 0x33, 0x66);
                case 0x0E:
                    return Color.FromRgb(0xFF, 0x00, 0xFF);
                case 0x1A:
                    return Color.FromRgb(0xFF, 0xFF, 0xCC);
                case 0x26:
                    return Color.FromRgb(0x00, 0x80, 0x80);
                case 0x32:
                    return Color.FromRgb(0x99, 0xCC, 0x00);
                case 0x3E:
                    return Color.FromRgb(0x33, 0x33, 0x99);
                case 0x0F:
                    return Color.FromRgb(0x00, 0xFF, 0xFF);
                case 0x1B:
                    return Color.FromRgb(0xCC, 0xFF, 0xFF);
                case 0x27:
                    return Color.FromRgb(0x00, 0x00, 0xFF);
                case 0x33:
                    return Color.FromRgb(0xFF, 0xCC, 0x00);
                case 0x3F:
                    return Color.FromRgb(0x33, 0x33, 0x33);
                case 0x10:
                    return Color.FromRgb(0x80, 0x00, 0x00);
                case 0x1C:
                    return Color.FromRgb(0x66, 0x00, 0x66);
                case 0x28:
                    return Color.FromRgb(0x00, 0xCC, 0xFF);
                case 0x34:
                    return Color.FromRgb(0xFF, 0x99, 0x00);
                case 0x11:
                    return Color.FromRgb(0x00, 0x80, 0x00);
                case 0x1D:
                    return Color.FromRgb(0xFF, 0x80, 0x80);
                case 0x29:
                    return Color.FromRgb(0xCC, 0xFF, 0xFF);
                case 0x35:
                    return Color.FromRgb(0xFF, 0x66, 0x00);
                case 0x12:
                    return Color.FromRgb(0x00, 0x00, 0x80);
                case 0x1E:
                    return Color.FromRgb(0x00, 0x66, 0xCC);
                case 0x2A:
                    return Color.FromRgb(0xCC, 0xFF, 0xCC);
                case 0x36:
                    return Color.FromRgb(0x66, 0x66, 0x99);
                case 0x13:
                    return Color.FromRgb(0x80, 0x80, 0x00);
                case 0x1F:
                    return Color.FromRgb(0xCC, 0xCC, 0xFF);
                case 0x2B:
                    return Color.FromRgb(0xFF, 0xFF, 0x99);
                case 0x37:
                    return Color.FromRgb(0x96, 0x96, 0x96);
                default:
                    throw new NotSupportedException();
            }
*/
        }
    }
}